package com.zhangzhan.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.gulimallcommcon.util.PageUtils;
import com.zhangzhan.gulimallproduct.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author zhangzhan
 * @email sunlightcs@gmail.com
 * @date 2024-06-12 16:45:44
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryBrandRelationEntity> catelogList(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String name);

    void updateCategory(Long catId, String name);

    /**
     * @description 获取品牌关联的分类
     * @param catId
     * @return java.util.List<com.zhangzhan.gulimallproduct.entity.CategoryBrandRelationEntity>
     * @author zhangyiheng
     * @date 2024/6/17 22:35
     */
    List<CategoryBrandRelationEntity> brandListByCatId(Long catId);
}

